from public import getResultDf, getAnalysis, aiResulIt
from spice.circuit import Circuit
from typing import AsyncIterable


# 噪音分析
async def noise(circuit: Circuit)->AsyncIterable[str]:
    if circuit:
        async for text in aiResulIt('噪音分析', str(circuit)):
            yield text
    else:
        yield '未上传网表信息'

        